﻿using System.Security.Claims;

namespace Swimj.Core.Securities
{
    public interface ISecurityUser
    {
        string? Name { get; }

        Guid? GetUserId();

        string? GetUserEmail();

        string? GetTenant();

        bool IsAuthenticated();

        bool IsInRole(string role);

        IEnumerable<Claim>? GetUserClaims();

        bool IsInPermissions(string permission);
    }

}
